package com.zhangjie.servicemap.controller;

import com.zhangjie.internalcommon.dto.ResponseResult;
import com.zhangjie.internalcommon.request.PointRequest;
import com.zhangjie.servicemap.service.PointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zj
 * @Date: 2024/2/29 - 02 - 29 - 16:56
 * @Description: com.zhangjie.servicemap.controller
 * @version: 1.0
 */
@RestController
@RequestMapping("/point")
public class PointController {

    @Autowired
    PointService pointService;

    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody PointRequest pointRequest) {

        return pointService.upload(pointRequest);
    }
}
